<?php
	use yii\helpers\Html;
	use yii\helpers\Url;
	use yii\widgets\ActiveForm;
	use yii\widgets\LinkPager;
?>

<div class="page-header">
	<h1>
		财务审批
		<small>
			<i class="ace-icon fa fa-angle-double-right"></i>
			上级审批
		</small>
	</h1>
</div><!-- /.page-header -->

<!-- PAGE CONTENT BEGINS -->
<div class="row">
	<div class="col-xs-12">
		<table id="simple-table" class="table table-striped table-bordered table-hover">
			<thead>
				<tr>
					<th class="center">id</th>
					<th class="hidden-480 cneter">登记时间</th>
					<th>客户名</th>
					<th>电话</th>
					<th>性别</th>
					<th>意向度</th>
					<th>跟办人</th>
					<th>审批</th>
				</tr>
			</thead>

			<tbody>
				<?php $i="1"?>
				<?php foreach($model as $mod):?>
				<tr>
					<td class="center"><?php echo $i;?></td>
					<td><?php echo date("Y-m-d",$mod['visitTime']);?></td>
					<td><a href="#"><?php echo $mod['name'];?></a></td>
					<td><?php echo $mod['phone'];?></td>
					<td><?php echo $gender[$mod['gender']];?></td>
					<td><?php echo isset($data['degree'][$mod['degree']]) ? $data['degree'][$mod['degree']] : "" ;?></td>									
					<td><?php echo $mod['sid'];?></td>
					<td>
						<div class="hidden-sm hidden-xs btn-group">
							<button class="btn btn-xs btn-success">
								<a href="<?= Yii::$app->urlManager->createUrl(['manage/agree']); ?>">
									<i class="ace-icon fa fa-check bigger-120"></i>
								</a>
							</button>

							<button class="btn btn-xs btn-danger">
								<i class="ace-icon fa fa-exclamation-triangle bigger-120"></i>
							</button>
						</div>

						<div class="hidden-md hidden-lg">
							<div class="inline pos-rel">
								<button class="btn btn-minier btn-primary dropdown-toggle" data-toggle="dropdown" data-position="auto">
									<i class="ace-icon fa fa-cog icon-only bigger-110"></i>
								</button>

								<ul class="dropdown-menu dropdown-only-icon dropdown-yellow dropdown-menu-right dropdown-caret dropdown-close">>
									<li>
										<a href="#" class="tooltip-success" data-rel="tooltip" title="Edit">
											<span class="green">
												<i class="ace-icon fa fa-check bigger-120"></i>
											</span>
										</a>
									</li>

									<li>
										<a href="#" class="tooltip-error" data-rel="tooltip" title="Delete">
											<span class="red">
												<i class="ace-icon fa fa-exclamation-triangle bigger-120"></i>
											</span>
										</a>
									</li>
								</ul>
							</div>
						</div>
					</td>
				</tr>
				<?php $i++;?>
				<?php endforeach;?>

			</tbody>
		</table>
		
	</div><!-- /.span -->
</div>


<div class="hr hr-18 dotted hr-double"></div>